package com.codefish.codefishseckill.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 秒杀商品权限表
 * </p>
 *
 * @author <a href='https://gitee.com/hzf2281'>codefish</a>
 * @since 2022-08-31
 */

/**
 * 秒杀商品权限表
 */
@Getter
@Setter
@TableName("sk_sec_kill_goods_permission")
public class SecKillGoodsPermissionDO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 秒杀的商品id
     */
    private Long secKillGoodsId;

    /**
     * 需要的权限
     */
    private String permission;

    /**
     * 创建时间
     */
    private LocalDateTime gmtCreated;
}
